<%inherit file="/base.mako"/>\

<%def name="header()">Year ${year}</%def>

<div id="year"></div>

<table class="data">
  <tr>
    <th>Year</th>
    <th>Asian</th>
    <th>Black</th>
    <th>Hispanic</th>
    <th>Native American</th>
    <th>White</th>
  </tr>
  % for racial_fact in racial_facts:
  <tr>
    <td>
      <a href="${request.route_url("year_detail", year=racial_fact.year.year)}">
        ${year.year}
      </a>
    </td>
    <td>${racial_fact.asian}</td>  
    <td>${racial_fact.black}</td>  
    <td>${racial_fact.hispanic}</td>  
    <td>${racial_fact.nativeamerican}</td>  
    <td>${racial_fact.white}</td>  
  </tr>
  % endfor
</table>

<%def name="js()">
<script type="text/javascript"> 
 ${pie_chart.get_js('year')|n}
</script>
</%def>